package org.dtrd.modules.record.entity.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DtrdEntRdUploadFileExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DtrdEntRdUploadFileExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDataIdIsNull() {
            addCriterion("data_id is null");
            return (Criteria) this;
        }

        public Criteria andDataIdIsNotNull() {
            addCriterion("data_id is not null");
            return (Criteria) this;
        }

        public Criteria andDataIdEqualTo(Integer value) {
            addCriterion("data_id =", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotEqualTo(Integer value) {
            addCriterion("data_id <>", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThan(Integer value) {
            addCriterion("data_id >", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("data_id >=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThan(Integer value) {
            addCriterion("data_id <", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("data_id <=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdIn(List<Integer> values) {
            addCriterion("data_id in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotIn(List<Integer> values) {
            addCriterion("data_id not in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdBetween(Integer value1, Integer value2) {
            addCriterion("data_id between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("data_id not between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdIsNull() {
            addCriterion("upload_file_user_id is null");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdIsNotNull() {
            addCriterion("upload_file_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdEqualTo(Integer value) {
            addCriterion("upload_file_user_id =", value, "uploadFileUserId");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdNotEqualTo(Integer value) {
            addCriterion("upload_file_user_id <>", value, "uploadFileUserId");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdGreaterThan(Integer value) {
            addCriterion("upload_file_user_id >", value, "uploadFileUserId");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("upload_file_user_id >=", value, "uploadFileUserId");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdLessThan(Integer value) {
            addCriterion("upload_file_user_id <", value, "uploadFileUserId");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("upload_file_user_id <=", value, "uploadFileUserId");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdIn(List<Integer> values) {
            addCriterion("upload_file_user_id in", values, "uploadFileUserId");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdNotIn(List<Integer> values) {
            addCriterion("upload_file_user_id not in", values, "uploadFileUserId");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdBetween(Integer value1, Integer value2) {
            addCriterion("upload_file_user_id between", value1, value2, "uploadFileUserId");
            return (Criteria) this;
        }

        public Criteria andUploadFileUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("upload_file_user_id not between", value1, value2, "uploadFileUserId");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeIsNull() {
            addCriterion("upload_file_type is null");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeIsNotNull() {
            addCriterion("upload_file_type is not null");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeEqualTo(Integer value) {
            addCriterion("upload_file_type =", value, "uploadFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeNotEqualTo(Integer value) {
            addCriterion("upload_file_type <>", value, "uploadFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeGreaterThan(Integer value) {
            addCriterion("upload_file_type >", value, "uploadFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("upload_file_type >=", value, "uploadFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeLessThan(Integer value) {
            addCriterion("upload_file_type <", value, "uploadFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeLessThanOrEqualTo(Integer value) {
            addCriterion("upload_file_type <=", value, "uploadFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeIn(List<Integer> values) {
            addCriterion("upload_file_type in", values, "uploadFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeNotIn(List<Integer> values) {
            addCriterion("upload_file_type not in", values, "uploadFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeBetween(Integer value1, Integer value2) {
            addCriterion("upload_file_type between", value1, value2, "uploadFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("upload_file_type not between", value1, value2, "uploadFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlIsNull() {
            addCriterion("upload_file_pic_url is null");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlIsNotNull() {
            addCriterion("upload_file_pic_url is not null");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlEqualTo(String value) {
            addCriterion("upload_file_pic_url =", value, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlNotEqualTo(String value) {
            addCriterion("upload_file_pic_url <>", value, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlGreaterThan(String value) {
            addCriterion("upload_file_pic_url >", value, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlGreaterThanOrEqualTo(String value) {
            addCriterion("upload_file_pic_url >=", value, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlLessThan(String value) {
            addCriterion("upload_file_pic_url <", value, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlLessThanOrEqualTo(String value) {
            addCriterion("upload_file_pic_url <=", value, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlLike(String value) {
            addCriterion("upload_file_pic_url like", value, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlNotLike(String value) {
            addCriterion("upload_file_pic_url not like", value, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlIn(List<String> values) {
            addCriterion("upload_file_pic_url in", values, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlNotIn(List<String> values) {
            addCriterion("upload_file_pic_url not in", values, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlBetween(String value1, String value2) {
            addCriterion("upload_file_pic_url between", value1, value2, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFilePicUrlNotBetween(String value1, String value2) {
            addCriterion("upload_file_pic_url not between", value1, value2, "uploadFilePicUrl");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusIsNull() {
            addCriterion("upload_file_status is null");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusIsNotNull() {
            addCriterion("upload_file_status is not null");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusEqualTo(Integer value) {
            addCriterion("upload_file_status =", value, "uploadFileStatus");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusNotEqualTo(Integer value) {
            addCriterion("upload_file_status <>", value, "uploadFileStatus");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusGreaterThan(Integer value) {
            addCriterion("upload_file_status >", value, "uploadFileStatus");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("upload_file_status >=", value, "uploadFileStatus");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusLessThan(Integer value) {
            addCriterion("upload_file_status <", value, "uploadFileStatus");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusLessThanOrEqualTo(Integer value) {
            addCriterion("upload_file_status <=", value, "uploadFileStatus");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusIn(List<Integer> values) {
            addCriterion("upload_file_status in", values, "uploadFileStatus");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusNotIn(List<Integer> values) {
            addCriterion("upload_file_status not in", values, "uploadFileStatus");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusBetween(Integer value1, Integer value2) {
            addCriterion("upload_file_status between", value1, value2, "uploadFileStatus");
            return (Criteria) this;
        }

        public Criteria andUploadFileStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("upload_file_status not between", value1, value2, "uploadFileStatus");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorIsNull() {
            addCriterion("upload_file_isdoctor is null");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorIsNotNull() {
            addCriterion("upload_file_isdoctor is not null");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorEqualTo(Integer value) {
            addCriterion("upload_file_isdoctor =", value, "uploadFileIsdoctor");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorNotEqualTo(Integer value) {
            addCriterion("upload_file_isdoctor <>", value, "uploadFileIsdoctor");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorGreaterThan(Integer value) {
            addCriterion("upload_file_isdoctor >", value, "uploadFileIsdoctor");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorGreaterThanOrEqualTo(Integer value) {
            addCriterion("upload_file_isdoctor >=", value, "uploadFileIsdoctor");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorLessThan(Integer value) {
            addCriterion("upload_file_isdoctor <", value, "uploadFileIsdoctor");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorLessThanOrEqualTo(Integer value) {
            addCriterion("upload_file_isdoctor <=", value, "uploadFileIsdoctor");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorIn(List<Integer> values) {
            addCriterion("upload_file_isdoctor in", values, "uploadFileIsdoctor");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorNotIn(List<Integer> values) {
            addCriterion("upload_file_isdoctor not in", values, "uploadFileIsdoctor");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorBetween(Integer value1, Integer value2) {
            addCriterion("upload_file_isdoctor between", value1, value2, "uploadFileIsdoctor");
            return (Criteria) this;
        }

        public Criteria andUploadFileIsdoctorNotBetween(Integer value1, Integer value2) {
            addCriterion("upload_file_isdoctor not between", value1, value2, "uploadFileIsdoctor");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeIsNull() {
            addCriterion("upload_file_file_type is null");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeIsNotNull() {
            addCriterion("upload_file_file_type is not null");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeEqualTo(String value) {
            addCriterion("upload_file_file_type =", value, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeNotEqualTo(String value) {
            addCriterion("upload_file_file_type <>", value, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeGreaterThan(String value) {
            addCriterion("upload_file_file_type >", value, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeGreaterThanOrEqualTo(String value) {
            addCriterion("upload_file_file_type >=", value, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeLessThan(String value) {
            addCriterion("upload_file_file_type <", value, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeLessThanOrEqualTo(String value) {
            addCriterion("upload_file_file_type <=", value, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeLike(String value) {
            addCriterion("upload_file_file_type like", value, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeNotLike(String value) {
            addCriterion("upload_file_file_type not like", value, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeIn(List<String> values) {
            addCriterion("upload_file_file_type in", values, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeNotIn(List<String> values) {
            addCriterion("upload_file_file_type not in", values, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeBetween(String value1, String value2) {
            addCriterion("upload_file_file_type between", value1, value2, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andUploadFileFileTypeNotBetween(String value1, String value2) {
            addCriterion("upload_file_file_type not between", value1, value2, "uploadFileFileType");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(Integer value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(Integer value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(Integer value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(Integer value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<Integer> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<Integer> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(Integer value1, Integer value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}